<?php
include("../../inc/conn.inc");
include("../islogin.php");
function jsURL($text,$url)
{
		header("Content-Type:text/html; charset=utf-8");
        echo '<script>alert("'.$text.'");location.href="'.$url.'"</script>';
        exit;
}
$id = intval($_GET['id']);
$uid = $_COOKIE['user_id'];


$sql = "delete from member_link where id=$id and member_id=$uid";
$re = mysql_query($sql);

	if($re)
	{
	jsURL("删除成功","friend.php");
	}
	else
	{
		jsURL("删除失败","friend.php");
	}

?>


